.chat-page {
	height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #F5F5F5;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}

/* 自定义导航栏 */
.custom-navbar {
	background: linear-gradient(135deg, #89CFF0 0%, #B7F0AD 100%);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
}

.navbar-content {
	height: 88rpx;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32rpx;
}

.back-btn,
.more-btn {
	width: 64rpx;
	height: 64rpx;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28rpx;
	color: #FFFFFF;
}

.navbar-title {
	font-size: 36rpx;
	font-weight: bold;
	color: #FFFFFF;
}

/* 系统消息 */
.system-message {
	text-align: center;
	padding: 20rpx;
}

.system-message-text {
	font-size: 24rpx;
	color: #999999;
	background-color: #F5F5F5;
	padding: 10rpx 20rpx;
	border-radius: 10rpx;
}

/* 未读消息分隔线 */
.un-read-p {
	text-align: center;
	font-size: 24rpx;
	color: #999999;
	margin: 20rpx 0;
	padding: 10rpx 0;
}

/* 消息时间 */
.message-time {
	text-align: center;
	margin: 10rpx 0;
}

.message-time text {
	font-size: 20rpx;
	color: #999999;
}

/* 聊天区域 */
.chat-container {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	/* padding-top 和 padding-bottom 通过内联样式动态设置 */
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}

.message-list {
	display: flex;
	flex-direction: column;
	padding: 32rpx;
	padding-top: 0;
	padding-bottom: 0;
	min-height: 100%;
	width: 100%;
	box-sizing: border-box;
}

.bottom-placeholder {
	height: 40rpx;
}

.message-item {
	width: 100%;
	margin-bottom: 20rpx;
}

.message-wrapper {
	display: flex;
	align-items: flex-start;
	margin-top: 10rpx;
}

.user-wrapper {
	justify-content: flex-end;
}

.avatar {
	width: 80rpx;
	height: 80rpx;
	border-radius: 50%;
	flex-shrink: 0;
}

.message-content-wrapper {
	display: flex;
	flex-direction: column;
	max-width: 70%;
	margin: 0 24rpx;
	position: relative;
	top: -10rpx;
}

.user-content {
	align-items: flex-end;
}

.message-bubble {
	padding: 24rpx;
	border-radius: 24rpx;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	word-wrap: break-word;
	word-break: break-all;
	display: inline-block;
	max-width: 100%;
}

.other-bubble {
	background-color: #FFFFFF;
	border-top-left-radius: 0;
}

.user-bubble {
	background: linear-gradient(135deg, #89CFF0 0%, #B7F0AD 100%);
	border-top-right-radius: 0;
}

.user-bubble .message-text {
	color: #FFFFFF;
}

.message-text {
	font-size: 28rpx;
	line-height: 1.6;
	color: #333333;
}

/* 底部输入区 */
.bottom-input {
	background-color: #FFFFFF;
	padding: 24rpx 32rpx;
	padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
	border-top: 1px solid #F0F0F0;
	display: flex;
	align-items: center;
	gap: 16rpx;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	width: 100%;
	box-sizing: border-box;
}

.message-input {
	flex: 1;
	background-color: #F5F5F5;
	border-radius: 999rpx;
	padding: 20rpx 32rpx;
	font-size: 28rpx;
}

.send-btn {
	width: 80rpx;
	height: 80rpx;
	border-radius: 50%;
	background-color: #89CFF0;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36rpx;
}

/* 未登录提示 */
.login-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.login-prompt {
	background-color: #FFFFFF;
	border-radius: 24rpx;
	padding: 48rpx;
	text-align: center;
	width: 80%;
}

.prompt-text {
	display: block;
	font-size: 48rpx;
	margin-bottom: 16rpx;
}

.prompt-subtext {
	font-size: 24rpx;
	color: #999999;
}